//
//  YLHomeButtonCollectionCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/8/24.
//  Copyright © 2017年 she1323. All rights reserved.
//  首页最底下的按钮

#import "YLHomeButtonCollectionCell.h"
#import "YLHomeButtonModel.h"

@interface YLHomeButtonCollectionCell ()
@property (weak, nonatomic) IBOutlet UIImageView *backGroundImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@end


@implementation YLHomeButtonCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


- (void)setModel:(YLHomeButtonModel *)model
{
    _model = model;
    _backGroundImageView.image = [UIImage imageNamed:model.backgroundImageName];
    _titleLabel.text = model.title;
    
}

+ (NSString *)cellID
{
    return @"YLHomeButtonCollectionCell";
}

@end
